package com.fengsh.nacos.api2.controller;

import com.fengsh.nacos.api2.ServiceApi2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @标题
 * @作者 fengsh998
 * @创建时间 2024/1/30
 * @功能描述
 */
@RestController
public class Service2Controller {
    @Autowired
    ServiceApi2 api2;

    @GetMapping("/nameInS2")
    public String getName() {
        return "APP_Service2_Name";
    }

    @GetMapping("/service2")
    public String getServiceValue() {
        return api2.fetchService();
    }
}
